package com.nuoniu.sibanyun.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author baiqiang
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_role")
@ApiModel(value="SysRole对象", description="角色表")
public class SysRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty(value = "角色别名")
    @TableField("role_alias")
    private String roleAlias;

    @ApiModelProperty(value = "角色分类（1高管、2中层、3基层、4其它）")
    @TableField("role_type")
    private Integer roleType;

    @ApiModelProperty(value = "用户类型(1员工)")
    @TableField("user_type")
    private Integer userType;

    @ApiModelProperty(value = "角色排序（升序）")
    @TableField("role_sort")
    private Integer roleSort;

    @ApiModelProperty(value = "系统内置（1是 0否）")
    @TableField("is_sys")
    private Boolean isSys;

    @ApiModelProperty(value = "数据范围设置（1:本人2:部门3:公司4:跨部门5:人员）")
    @TableField("data_scope")
    private Integer dataScope;

    @ApiModelProperty(value = "状态（0正常 1删除 2停用）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "备注信息")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "租户名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "适应业务范围（不同的功能，不同的数据权限支持）")
    @TableField("biz_scope")
    private String bizScope;

}
